package com.john.ishadowsocks.auto.parser;

import com.john.http.core.parser.AbstractHtmlItemParser;
import com.john.http.core.parser.config.HtmlParseConfig;
import com.john.ishadowsocks.auto.data.ServerItem;

/**
 * 〈一句话功能简述〉<br/>
 * 〈解析ShadowSocks网页内容〉
 *
 * @author jiangguangtao on 2016/5/20.

 */
public class IShadowSocksParser extends AbstractHtmlItemParser<ServerItem> {

    public IShadowSocksParser(HtmlParseConfig parseConfig) {
        super(parseConfig);
    }

    @Override
    protected boolean isValidBean(ServerItem bean) {
        return null != bean && bean.isValid();
    }

    @Override
    protected ServerItem createNewBean() {
        return new ServerItem();
    }
}
